/*******************************************************************************
	PhidgetTestPawn

	Creation date: 02/07/2010 10:38
	Copyright (c) 2010, steve-Mac
	<!-- $Id: NewClass.uc,v 1.1 2004/03/29 10:39:26 elmuerte Exp $ -->
*******************************************************************************/

class PhidgetPawn extends UTPawn placeable DLLBind(phidget21);

var int phidgetID;

var string myMessage;

dllimport final function CPhidget_open(out int phidgetSerial);
dllimport final function CPhidgetAccelerometer_getAcceleration( int phidgetAccel, out float curaccel);

simulated function PreBeginPlay()
{

	`log("***********************************************");
	`log("***** STEVE - PreBeginplay in PhidgetPawn *****" @ myMessage @ "Harris");
	`log("***********************************************");

	super.PreBeginPlay();

	SetTimer(5.0, true);

	//CPhidget_open(phidgetSerial);
	CPhidget_open(phidgetID);

}




simulated function PostBeginPlay() {

	`log("***********************************************");
	`log("***** STEVE - PostBeginPlay in PhidgetPawn ****" @ myMessage @ "Harris");
	`log("***********************************************");
	Velocity = Vect(0, 0, -90);

}



function Timer() {

	`log("***********************************************");
	`log("***** STEVE - TIMER in PhidgetPawn ************" @ myMessage @ "Harris");
	`log("***********************************************");

	Velocity = (-1) * Velocity;

}





//function Tick( float DeltaTime )
//{
	
//	local float curAccel; 
		
//	CPhidgetAccelerometer_getAcceleration(phidgetID, curAccel);

//`log("******************************** phidgetID *********************************");

//}


defaultproperties
{

	Begin Object Class=DynamicLightEnvironmentComponent Name=SHLightEnvironment
		bSynthesizeSHLight=TRUE
		bIsCharacterLightEnvironment=TRUE
	End Object
	Components.Add(MyLightEnvironment)
	LightEnvironment=SHLightEnvironment

	Begin Object class=SkeletalMeshComponent name=SkeletalMeshComponent0
		SkeletalMesh=SkeletalMesh'MeatPackage.MeatCube'
		LightEnvironment=SHLightEnvironment
	End Object
	Components.Add(SkeletalMeshComponent0)





}

